package org.example.www.ComplaintS2;

public class ComplaintS2Proxy implements org.example.www.ComplaintS2.ComplaintS2_PortType {
  private String _endpoint = null;
  private org.example.www.ComplaintS2.ComplaintS2_PortType complaintS2_PortType = null;
  
  public ComplaintS2Proxy() {
    _initComplaintS2Proxy();
  }
  
  public ComplaintS2Proxy(String endpoint) {
    _endpoint = endpoint;
    _initComplaintS2Proxy();
  }
  
  private void _initComplaintS2Proxy() {
    try {
      complaintS2_PortType = (new org.example.www.ComplaintS2.ComplaintS2_ServiceLocator()).getComplaintS2SOAP();
      if (complaintS2_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)complaintS2_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)complaintS2_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (complaintS2_PortType != null)
      ((javax.xml.rpc.Stub)complaintS2_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.example.www.ComplaintS2.ComplaintS2_PortType getComplaintS2_PortType() {
    if (complaintS2_PortType == null)
      _initComplaintS2Proxy();
    return complaintS2_PortType;
  }
  
  public java.lang.String evaluate(java.lang.String parameters) throws java.rmi.RemoteException{
    if (complaintS2_PortType == null)
      _initComplaintS2Proxy();
    return complaintS2_PortType.evaluate(parameters);
  }
  
  public java.lang.String log(java.lang.String parameters) throws java.rmi.RemoteException{
    if (complaintS2_PortType == null)
      _initComplaintS2Proxy();
    return complaintS2_PortType.log(parameters);
  }
  
  public java.lang.String processQuestionnaire(java.lang.String parameters) throws java.rmi.RemoteException{
    if (complaintS2_PortType == null)
      _initComplaintS2Proxy();
    return complaintS2_PortType.processQuestionnaire(parameters);
  }
  
  public java.lang.String archive(java.lang.String parameters) throws java.rmi.RemoteException{
    if (complaintS2_PortType == null)
      _initComplaintS2Proxy();
    return complaintS2_PortType.archive(parameters);
  }
  
  
}